package run.newbug.springboot_demo4_mvc.service;

import org.springframework.stereotype.Component;
import run.newbug.springboot_demo4_mvc.pojo.User;

import java.util.List;
@Component
public interface UserService {
    List<User> gatAll();
    List<User> update(User user);

    List<User> deleteById(Integer id);

    User getById(Integer id);

    List<User> getByUs(User user);

    List<User> getByNameLike(String x);

    List<User> deleteByName(User user);

    List<User> inser(User user);
}
